
import { createBrowserRouter } from 'react-router-dom';
import Layout from '../views/Layout';
import Dashboard from '../views/DshBoard/index.jsx';
import Users from '../views/Users';
import Products from '../views/Products.jsx';
// import Settings from './pages/Settings';
// import Login from './pages/Login';
import NotFound from '../views/Layout';

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        path: '/todlist',
        element: <Dashboard />
      },
      {
        path: '/users',
        element: <Users />
      },
      {
        path: '/products',
        element: <Products />
      },
      //   {
      //     path: '/settings',
      //     element: <Settings />
      //   }
    ]
  },
  // {
  //   path: '/login',
  //   element: <Login />
  // },
  {
    path: '*',
    element: <NotFound />
  }
]);

export default router;